package com.googlecode.jlogalizer.mapred.log.format;

import org.apache.hadoop.io.NullWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapred.lib.MultipleTextOutputFormat;

import com.googlecode.jlogalizer.mapred.util.LogParser;

public class ClientIdMultipleTextOutputFormat extends MultipleTextOutputFormat<NullWritable, Text> {
	
	@Override
	protected String generateFileNameForKeyValue(NullWritable key, Text value, String name) {
		
		return (LogParser.getInstance().getClientIdFromLogEntry(value.toString()));
	}

}
